modprobe sch_netem
tc qdisc add dev lo root netem delay 500ms 10ms 30%
tc qdisc change dev lo root netem loss 10% 30%
tc qdisc change dev lo root netem duplicate 10%
tc qdisc change dev lo root netem corrupt 10%
tc qdisc change dev lo root netem delay 10ms reorder 25% 50%
